/**
 * Created by Administrator on 2017/2/25 0025.
 */
'use strict';

angular.module('App')
    .factory('dataCookies',["$cookies","$cookieStore",function ($cookies,$cookieStore) {

        return {
            getCookies:function(data){
                //console.log(  $cookies.getObject(data));
                return $cookies.getObject(data);//获取cookies
            },
            putCookies:function( a,b,data ){
                return $cookies.putObject(a,{b:data});//设置cookies
            },
            put:function( a,data ){
                return $cookies.put(a,data);//设置cookies
            },
            removeCookies:function(token){
                return $cookies.remove(token);
            }
        }
    }])